package loengud.yheksas;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import javax.swing.JFrame;

public class Main extends JFrame {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Main m = new Main();
//		m.setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		m.addKeyListener(new KeyAdapter() {
			@Override
			public void keyPressed(KeyEvent e) {
				if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
					Kinnitaja k = new Kinnitaja();
					k.setVisible(true);
				}
			}
		}); // -addKeyListener
		
		m.setVisible(true);
		System.out.println("done");
	} // -main

}
